import 'package:base_flutter/base_flutter.dart';
import 'package:ls_work/model/medicine_advice_model.dart';

import '../../net/response/medicine_advice/treatment_detail_list_data.dart';
class TreatmentSheetDetailViewModel extends BaseListViewModel<TreatmentDetailListData>{
  dynamic id;
  TreatmentSheetDetailViewModel(super.context,{required this.id});

  var model = MedicineAdviceModel();
  @override
  Future<List<TreatmentDetailListData>> requestListData() async {
    return await model.treatmentDetailList(id);
  }

  @override
  void onCreated() {
    super.onCreated();
    requestRefresh();
  }

}